package com.ali.juejin.widget

import android.content.Context

import com.ali.juejin.R
import com.ali.juejin.adapter.HomeRecommendTagsAdapter
import com.ali.juejin.model.main.HotListModel
import com.google.android.flexbox.FlexDirection
import com.google.android.flexbox.FlexboxLayoutManager
import com.lxj.xpopup.impl.PartShadowPopupView
import kotlinx.android.synthetic.main.popup_tag.view.*


class TagListView(context: Context,val model:HotListModel,val tagsAdapter:HomeRecommendTagsAdapter) : PartShadowPopupView(context) {


    override fun getImplLayoutId(): Int {
        return R.layout.popup_tag
    }

    override fun onCreate() {
        val layoutManager = FlexboxLayoutManager(context)
        layoutManager.flexDirection = FlexDirection.ROW
        recommend_pop_tag_list.layoutManager = layoutManager
        recommend_pop_tag_list.adapter = tagsAdapter
    }

}